//
//  ABExcute.h
//  afnetworkingtest
//
//  Created by appbegin on 14-2-10.
//  Copyright (c) 2014年 appbegin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SEObject.h"

@interface SEExcute : NSObject

- (void)excutePostWithPath:(NSString *)path withParam:(NSDictionary *)dictionary onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;
- (void)excutePostWithPath:(NSString *)path withParam:(NSDictionary *)dictionary hasHeader:(BOOL)header onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;
- (void)excutePostWithPath:(NSString *)path withParam:(NSDictionary *)dictionary hasHeader:(BOOL)hasHeader noHud:(BOOL)noHud onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;

- (void)excutePostReturnArrayWith:(NSString *)path withParam:(NSDictionary *)dictionary onSuccess:(ABResultsArraySuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;
- (void)excutePostReturnArrayWith:(NSString *)path hasHeader:(BOOL)hasHeader withParam:(NSDictionary *)dictionary onSuccess:(ABResultsArraySuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;

// AFMultipartFormData
- (void)excuteFormDataPostWithPath:(NSString *)path withParam:(NSDictionary *)dictionary hasHeader:(BOOL)hasHeader onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;
- (void)excuteFormDataPostWithPath:(NSString *)path withParam:(NSDictionary *)dictionary hasHeader:(BOOL)hasHeader noHud:(BOOL)noHud onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;
// 上传头像
- (void)excuteUserHeaderPostWithPath:(NSString *)path withParam:(NSDictionary *)dictionary withFile:(NSData *)file onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;

- (void)excutePutWithPath:(NSString *)path withParam:(NSDictionary *)dictionary onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;

- (void)excuteGetWithPath:(NSString *)path onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;
- (void)excuteGetWithPath:(NSString *)path withParam:(NSDictionary *)dictionary onSuccess:(ABResultsSuccessBlock)successBlcok onFailure:(ABFailureBlock)failureBlock;
@end
